import {defineConfig} from "./defingConfig";

export default defineConfig({

    mongoose: {
        uri: "mongodb://localhost:27017/booksRecommend"
    },
    jwt: {
        secret: "zhaojiuyi010407",
        expiresIn: "24h",
    },
    mail: {
        /* qq */
        // transport: {
        //   host: 'smtp.qq.com',
        //   port: 25,
        //   secure: true,
        //   auth: {
        //     user: '1197788450@qq.com',
        //     pass: 'usyyefpseunnfihe',
        //   },
        // },
        // defaults: {
        //   from: '1197788450@qq.com',
        // },
        /* 163 */
        transport: {
            host: 'smtp.163.com',
            port: 25,
            secure: false,
            auth: {
                user: 'zjyjiuyi@163.com',
                pass: 'JTXSEAXHYHWMVBBJ',
            },
        },
        defaults: {
            from: 'zjyjiuyi@163.com',
        },
    },
    database: {
        type: "mysql",
        host: "43.136.169.74",
        port: 3306,
        username: "books",
        password: "fy7777777",
        database: "books_recommend",
        autoLoadModels: true, // 如果为true，模型将自动载入（默认:false)
        synchronize: false, //如果为true 自动加载的模型将被同步进数据库，生产环境要关闭，否则可能因为字段的删除而造成数据的丢失。
        logging: true //是否启动日志记录
    },
    redis: {
        config: {
            host: "localhost",
            port: 6379,
            db: 0
            // url: "redis://localhost:6379/0/"
        }
    },
    neo4j: {
        scheme: "neo4j",
        host: "localhost",
        port: 7687,
        username: "neo4j",
        password: "fy7777777",
    }

});
